//登录接口用户名和密码参数ts类型
export interface LoginReqForm {
  username: string
  password: string
}

//登录接口返回数据类型
interface dataToken {
  token: string
}
export interface LoginResponseData {
  code: number
  data: dataToken
}

//定义获取服务器返回用户信息数据类型
interface userInfo {
  userId: number
  avatar: string
  username: string
  password: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}
interface user {
  checkuser: userInfo
}
export interface UserInforesponseData {
  code: number
  data: user
}
